package com.ruoyi.production.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基质退回对象 stroma_return
 * 
 * @author ruoyi
 * @date 2021-07-16
 */
public class StromaReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退回编号自动编号，主码 */
    private Long stromaReturnId;

    /** 基质种类外码 */
    @Excel(name = "基质种类外码")
    private Long stromaKindId;

    /** 基质种类名称 */
    private String stromaKind;

    /** 基质类型外码 */
    @Excel(name = "基质类型外码")
    private Long stromaTypeId;

    /** 基质类型名称 */
    private String stromaTypeName;

    /** 基质品牌 */
    @Excel(name = "基质品牌")
    private String brand;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 退回量默认为0 */
    @Excel(name = "退回量默认为0")
    private Long returnAmount;

    /** 退回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退回时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 退回人外码 */
    @Excel(name = "退回人外码")
    private Long userId;

    /** 退回人 */
    private String userName;

    public void setStromaReturnId(Long stromaReturnId) 
    {
        this.stromaReturnId = stromaReturnId;
    }
    public Long getStromaReturnId() 
    {
        return stromaReturnId;
    }

    public void setStromaKindId(Long stromaKindId) 
    {
        this.stromaKindId = stromaKindId;
    }
    public Long getStromaKindId() 
    {
        return stromaKindId;
    }

    public void setStromaKind(String stromaKind) { this.stromaKind = stromaKind; }
    public String getStromaKind() { return stromaKind; }

    public void setStromaTypeId(Long stromaTypeId)
    {
        this.stromaTypeId = stromaTypeId;
    }
    public Long getStromaTypeId() 
    {
        return stromaTypeId;
    }

    public void setStromaTypeName(String stromaTypeName) { this.stromaTypeName = stromaTypeName; }
    public String getStromaTypeName() { return stromaTypeName; }

    public void setBrand(String brand)
    {
        this.brand = brand;
    }
    public String getBrand() 
    {
        return brand;
    }

    public void setOriginCompany(String originCompany) 
    {
        this.originCompany = originCompany;
    }
    public String getOriginCompany() 
    {
        return originCompany;
    }

    public void setReturnAmount(Long returnAmount) 
    {
        this.returnAmount = returnAmount;
    }
    public Long getReturnAmount() 
    {
        return returnAmount;
    }

    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }
    public Date getReturnTime() 
    {
        return returnTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) { this.userName = userName; }
    public String getUserName() { return userName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stromaReturnId", getStromaReturnId())
            .append("stromaKindId", getStromaKindId())
            .append("stromaTypeId", getStromaTypeId())
            .append("brand", getBrand())
            .append("originCompany", getOriginCompany())
            .append("returnAmount", getReturnAmount())
            .append("returnTime", getReturnTime())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
